package lab02.test07;

public class Student extends Person {

    private  String num;
    private  String school;


    public  Student(){}

    public Student(String name,int ages, String idNum,String num,String school){
        super(name,ages,idNum);
        this.num=num;
        this.school=school;

    }


    public String getNum() {
        return num;
    }


    public void setNum(String num) {
        this.num = num;
    }


    public String getSchool() {
        return school;
    }


    public void setSchool(String school) {
        this.school = school;
    }


    @Override
    public String toString() {
        return super.toString()+"\n"+"学号为："+num+"\n"+"学校为："+school;
    }
}
